package com.quwan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.quwan.anno.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author laozhang
 * @date 2021/11/12 14:15
 */
@Data
@Accessors(chain = true)
@TableName(value = "t_preserve_data")
public class TPreserveData {
    @Excel(name = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("日期")
    @Excel(name = "日期",dateFormat = "yyyy-MM-dd")
    @TableField(value = "day")
    private Date day;

    @ApiModelProperty("注册")
    @Excel(name = "注册")
    @TableField(value = "register")
    private Integer register;

    @ApiModelProperty("次日")
    @Excel(name = "次日")
    @TableField(value = "next_day")
    private Integer nextDay;

    /**
     * 访问人数
     */
    @ApiModelProperty("三日")
    @Excel(name = "三日")
    @TableField(value = "three_day")
    private Integer threeDay;



    @ApiModelProperty("七日")
    @Excel(name = "七日")
    @TableField(value = "seven_day")
    private Integer sevenDay;

    @ApiModelProperty("十五日")
    @Excel(name = "十五日")
    @TableField(value = "fifty_day")
    private Integer fiftyDay;

    @ApiModelProperty("三十日")
    @Excel(name = "三十日")
    @TableField(value = "threety_day")
    private Integer threetyDay;

    @TableField(value = "add_time")
    private Date addTime;
}
